package org.zachary.agent.domain.aggregate_model.user.event;

import org.springframework.context.ApplicationEvent;
import org.zachary.agent.domain.aggregate_model.user.User;


public class UserRegisteredEvent extends ApplicationEvent {
    private final String userId;
    public UserRegisteredEvent(Object source, String  uuid) {
        super(source);
        this.userId=uuid;
    }
    public User getUser() {
        return (User)getSource();
    }
    public String getUserId() {
        return this.userId;
    }
}
